home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: HELP NEEDED..Please no Sermons
- Date: 14 Mar 1996 07:40:44 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4i9elsINN7ss@keats.ugrad.cs.ubc.ca>
- References: <4i7th3$c9@newsbf02.news.aol.com>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <4i7th3$c9@newsbf02.news.aol.com>,
- MackBoring <mackboring@aol.com> wrote:
- >****** PLEASE DO NOT REPLY WITH SPEECHES OR NASTY POSTS************
- >First please read at least this short paragraph.
- > Iam a student that is desperately in a hole. I am not wishing to cheat my
- >self out of an education of C , but...I have a scenario. I am recently a
- >new farther (4 week old boy) and have enrolled in this C class and am
-
- Still four weeks like two weeks ago, eh? ;)
-
- >7.Write aprogram to compute farenheit to celsius temperature. The table
- >should run from -40 to 220 degrees farenheit in signle degree
- >intervals.Show farenheit as an integer and celsius as a float. Conversion
- >formula is..................... C=(5/9)*(F-32)
-
- This program is implemented in the Kernighan and Ritchie book which you should
- have if you are learning C.
-
- >8. Write a program using a contigous numerical sequence, to print a
- >listing of all possible arragments of the digits 000 thru 999 three
- >digits at a time for example 000,001,002....998,999
-
- for(i=0;i<1000;i++) printf("%03d\n",i);
-
- >9. Access the clock display the time on the screen( e.g 14.20.33). Now
- >translate the time into printed words and display that on screen. Noon and
- >midnight should be so named .
-
- #include <time.h>
- #include <stdio.h>
- .
- .
- .
- char str[20];
-
- strftime(str,20,"%H.%M.%S",localtime(NULL));
-
- puts(str);
-
- >************************************* Ifpossible create a loop(for a set
- >period of time or until a key is pressed) displaying the time each time
- >through the loop. If possible set an alarm to beep at a given (requested)
- >time. If you want to show(translate into words) the seconds.
-
- You are taking a hokey course. Methods for detecting a keystroke are
- platform-specific, not a part of the C language.
- --
-
-